<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TabButtonGroup类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_tab_button_group.html">TabButtonGroup</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_tab_button_group-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TabButtonGroup类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TabButtonGroup 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_tab_button_group.png" usemap="#awtk.TabButtonGroup_map" alt=""/>
  <map id="awtk.TabButtonGroup_map" name="awtk.TabButtonGroup_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a725e9765b1d4527c39542d284ae689cd"><td class="memItemLeft" align="right" valign="top"><a id="a725e9765b1d4527c39542d284ae689cd"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TabButtonGroup</b> (long nativeObj)</td></tr>
<tr class="separator:a725e9765b1d4527c39542d284ae689cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48faa1a7f51a12222286e03334569d7e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_tab_button_group.html#a48faa1a7f51a12222286e03334569d7e">setCompact</a> (boolean compact)</td></tr>
<tr class="separator:a48faa1a7f51a12222286e03334569d7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a21b12b8c7c07f825c8c76aea85e928"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_tab_button_group.html#a0a21b12b8c7c07f825c8c76aea85e928">setScrollable</a> (boolean scrollable)</td></tr>
<tr class="separator:a0a21b12b8c7c07f825c8c76aea85e928"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09d7ec828c417b78b6eed31655fa9f91"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_tab_button_group.html#a09d7ec828c417b78b6eed31655fa9f91">getCompact</a> ()</td></tr>
<tr class="separator:a09d7ec828c417b78b6eed31655fa9f91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b84ac266f87c4c0e26584aa9a86be34"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_tab_button_group.html#a7b84ac266f87c4c0e26584aa9a86be34">getScrollable</a> ()</td></tr>
<tr class="separator:a7b84ac266f87c4c0e26584aa9a86be34"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a10c0c2ddc0002be5979f56f39fe609d9"><td class="memItemLeft" align="right" valign="top"><a id="a10c0c2ddc0002be5979f56f39fe609d9"></a>
static <a class="el" href="classawtk_1_1_tab_button_group.html">TabButtonGroup</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a10c0c2ddc0002be5979f56f39fe609d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a2715100b4c4d0cf5e16e6c061bdbac"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_tab_button_group.html#a0a2715100b4c4d0cf5e16e6c061bdbac">create</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a0a2715100b4c4d0cf5e16e6c061bdbac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a09564c2eac89aa95b8cb370f56f3cb"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_tab_button_group.html">TabButtonGroup</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_tab_button_group.html#a9a09564c2eac89aa95b8cb370f56f3cb">cast</a> (Widget widget)</td></tr>
<tr class="separator:a9a09564c2eac89aa95b8cb370f56f3cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a70829eb9be5b907b73a05c0a203753bc"><td class="memItemLeft" align="right" valign="top"><a id="a70829eb9be5b907b73a05c0a203753bc"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a70829eb9be5b907b73a05c0a203753bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>标签按钮分组控件。</p>
<p>一个简单的容器，主要用于对标签按钮进行布局和管理。</p>
<p>tab_button_group_t是widget的子类控件， widget_t的函数均适用于tab_button_group_t控件。</p>
<p>在xml中使用"tab\_button\_group"标签创建标签按钮分组控件。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">tab_button_group</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom:10&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;90%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">compact</span>=<span class="stringliteral">&quot;true&quot;</span></div><div class="line">&lt;<span class="keywordtype">tab_button</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;General&quot;</span>/&gt;</div><div class="line">&lt;<span class="keywordtype">tab_button</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;Network&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;true&quot;</span> /&gt;</div><div class="line">&lt;<span class="keywordtype">tab_button</span> <span class="keyword">text</span>=<span class="stringliteral">&quot;Security&quot;</span>/&gt;</div><div class="line">&lt;/<span class="keywordtype">tab_button_group</span>&gt;</div></div><!-- fragment --><p>更多用法请参考： <a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/">tab control</a></p>
<p>可用通过style来设置控件的显示风格，如颜色等等。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">tab_button_group</span>&gt;</div><div class="line">&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">normal</span>/&gt;</div><div class="line">&lt;/<span class="keywordtype">style</span>&gt;</div><div class="line">&lt;/<span class="keywordtype">tab_button_group</span>&gt;</div></div><!-- fragment --> </div><h2 class="groupheader">成员函数说明</h2>
<a id="a9a09564c2eac89aa95b8cb370f56f3cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a09564c2eac89aa95b8cb370f56f3cb">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_tab_button_group.html">TabButtonGroup</a> awtk.TabButtonGroup.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换tab_button_group对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>tab_button_group对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>tab_button_group对象。 </dd></dl>

</div>
</div>
<a id="a0a2715100b4c4d0cf5e16e6c061bdbac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a2715100b4c4d0cf5e16e6c061bdbac">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.TabButtonGroup.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建tab_button_group对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a09d7ec828c417b78b6eed31655fa9f91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09d7ec828c417b78b6eed31655fa9f91">&#9670;&nbsp;</a></span>getCompact()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TabButtonGroup.getCompact </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>紧凑型排版子控件(缺省FALSE)。 </p>

</div>
</div>
<a id="a7b84ac266f87c4c0e26584aa9a86be34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b84ac266f87c4c0e26584aa9a86be34">&#9670;&nbsp;</a></span>getScrollable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TabButtonGroup.getScrollable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否支持滚动(缺省FALSE)。</p>
<p>紧凑型排版子控件时才支持滚动。 </p>

</div>
</div>
<a id="a48faa1a7f51a12222286e03334569d7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48faa1a7f51a12222286e03334569d7e">&#9670;&nbsp;</a></span>setCompact()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.TabButtonGroup.setCompact </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>compact</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置compact。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">compact</td><td>是否使用紧凑布局(缺省FALSE)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0a21b12b8c7c07f825c8c76aea85e928"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a21b12b8c7c07f825c8c76aea85e928">&#9670;&nbsp;</a></span>setScrollable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.TabButtonGroup.setScrollable </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>scrollable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置scrollable。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">scrollable</td><td>是否允许滚动(缺省FALSE)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TabButtonGroup.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
